import request from '@/utils/request'

// 查询人员诉求情况列表
export function listDemands(query) {
  return request({
    url: '/supervision/demands/list',
    method: 'get',
    params: query
  })
}

// 查询人员诉求情况详细
export function getDemands(id) {
  return request({
    url: '/supervision/demands/' + id,
    method: 'get'
  })
}

// 新增人员诉求情况
export function addDemands(data) {
  return request({
    url: '/supervision/demands',
    method: 'post',
    data: data
  })
}

// 修改人员诉求情况
export function updateDemands(data) {
  return request({
    url: '/supervision/demands',
    method: 'put',
    data: data
  })
}

// 删除人员诉求情况
export function delDemands(id) {
  return request({
    url: '/supervision/demands/' + id,
    method: 'delete'
  })
}
